import Vue from 'vue'
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/',
            meta: { title: '自述文件' },
            component: () => import('../components/page/home/home.vue'),
            children: [
                {
                    path: '/home',
                    component: () => import('../components/page/home/home.vue'),
                    meta: { title: '首页' }
                },
            ]
        }
    ]
});
